<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE html>
<!--[if IE 8]> <html lang="en" class="ie8"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9"> <![endif]-->
<!--[if !IE]><!--> <html lang="en"> <!--<![endif]-->
<!-- BEGIN HEAD -->
<head>
    <meta charset="utf-8" />
    <title>菜单新增</title>
    <meta content="width=device-width, initial-scale=1.0" name="viewport" />
    <meta content="" name="description" />
    <meta content="" name="author" />
    <link href="${staticUrl}/js/libs/bootstrap/css/bootstrap.min.css" rel="stylesheet" />
    <link href="${staticUrl}/css/metro/metro-default.css" rel="stylesheet"/> 
    <link rel="stylesheet" href="${staticUrl}/js/plugins/jDialog/jDialog.css" />
    
    <script src="${staticUrl}/js/libs/jquery/jquery-1.8.3.min.js"></script>
    <script src="${staticUrl}/js/plugins/jDialog/jDialog.js"></script>
    <script type="text/javascript" src="${staticUrl}/js/plugins/validate/jquery.validate.min.js?v=${staticV}"></script>
    <script type="text/javascript" src="${staticUrl}/js/plugins/jquery.form.js?v=${staticV}"></script>

    <script type="text/javascript" src="${staticUrl}/js/libs/md5.js?v=${staticV}"></script>
    <script type="text/javascript">
			var CONTEXTPATH ="${staticUrl}";
	</script>
</head>
<!-- END HEAD -->
<!-- BEGIN BODY -->
<body class="fixed-top">
                    <!-- BEGIN SAMPLE FORMPORTLET-->
                            <!-- BEGIN FORM-->
                            <form id="userform" action="${staticUrl }/user/addUser" class="cmxform form-horizontal" method="post">
                            <div class="control-group">
                                <label class="control-label">登录名</label>
                                <div class="controls">
                               	    <input type="hidden"  value="${type }" id="type" name="type"/>
                                    <input type="text" class="span6 " value="${loginNum }" name="loginNum" id="loginNum" required <c:if test="${type == '2'}">readOnly</c:if> />
                                </div>
                            </div>
                             <div class="control-group">
                                <label class="control-label">登录密码</label>
                                <div class="controls">
                                    <input class="span6 " type="password"  id="loginPwd" name="loginPwd" required <c:if test="${type == '2'}">disabled</c:if>/> <c:if test="${type == '2'}"><input type="checkbox" id="isChangePwd" /> </c:if>
                                </div>
                            </div>
                            <div class="control-group">
                                <label class="control-label">用户名称</label>
                                <div class="controls">
                                    <input class="span6 " type="text"  id="userName" name="userName" required/>
                                </div>
                            </div>
                            <div class="control-group">
                                <label class="control-label">地市</label>
                                <div class="controls">
	                                    <input class="span6 " type="text"  id="regionNum" name="regionNum"/>
                                </div>
                            </div>
                            <div class="control-group">
                                <label class="control-label">区县 </label>
                                <div class="controls">
                                   <input class="span6 " type="text"  id="areaNum" name="areaNum"/>
                                </div>
                            </div> 
                            <div class="control-group">
                                <label class="control-label">所属机构 </label>
                                <div class="controls">
	                                     <input class="span6 " type="text" tabindex="1" id="orgNum" name="orgNum"/>
                                </div>
                            </div> 
                            <div class="control-group">
                                <label class="control-label">用户头像 </label>
                                <div class="controls">
                                	<input type="hidden"  id="userImg" name="userImg"/>
                                	<div id="userImgDiv">
                                		 
                                	</div>
                                    <input type="file" class="default" name="fileInput" id="fileInput" />
                                </div>
                            </div> 
                             
                            <div class="form-actions" style="background-color:white">
                                <button class="btn btn-success" type="submit" id="btn-ok">提交</button>
                                <button type="button" class="btn" id="btn-cancel">取消</button>
                            </div>
                            </form>
                            <!-- END FORM-->
                    <!-- END SAMPLE FORM PORTLET-->
                    <script  type="text/javascript" src="${staticUrl}/js/plugins/ajaxFileUpload.js"></script>
                    <script  type="text/javascript" src="${staticUrl}/js/pages/metro/user/userPage.js?v=${staticV}"></script>
                
</body>
<!-- END BODY -->
</html>
